#!/usr/bib/python3
import re
with open("web.txt") as f:
    for i  in f:
        if re.findall('http://www\..*\..*',i):
            print(re.findall('http://www\..*\.\w+',i))
